{% extends 'base.html' %}

{% block title %}Browse Projects{% endblock title %}

{% block content %}
<h1>Browse Projects</h1>
{% if projects.object_list %}
{% for project in projects.object_list %}
<h2><a href="{{ project.get_absolute_url }}">{{ project }}</a></h2>
<ul>
<li>created by <a href="{{ project.creator.get_absolute_url }}">{{ project.creator }}</a> on {{ project.date_added|date:"D M d Y P" }}</li>
<li><a href="{% url issue_list project.slug %}">{{ project.issues.count }} Issue{{ project.issues.count|pluralize }}</a>, <a href="{% url member_list project.slug %}">{{ project.members.count }} Member{{ project.members.count|pluralize }}</a></li>
</ul>
{% endfor %}
{% else %}
<h2>There are no projects at this time.</h2>
{% endif %}
<h3><a href="{% url create_project %}">Create a project</a></h3>
{% endblock content %}

{% block pagination_nav %}
{% with projects as objects %}{% include '_pagination_nav.html' %}{% endwith %}
{% endblock %}